package evklid;

import java.math.*;

public class summa {
	public static void main(String[] args) {
    int c;
    long a=(long)(Math.random()*1000000000*1000000000);
    long b=(long)(Math.random()*1000000000*1000000000);
    System.out.println("   " +a);
    System.out.println("+");
    System.out.println("   "+b);
    long ost=0; int n=0; long res;
    long a1=a;
    while(a1!=0){a1=a1/10; n++;}
    //System.out.println(n);
    long[] arr= new long [n];
    int i=0;
    while (a!=0&&b!=0){
    	res=a%10+b%10+ost;
    	ost=res/10;
    	res=res%10;
    	arr[i]=res;
    	a=a/10; b=b/10;
    	i++;
    }
    System.out.print("   ");
   for (int j=n-1; j>=0; j--){
	   System.out.print(arr[j]);
   }
    
    
	}

}
